        <!-- div class="span-6 last" id="sidebar" -->
            <?php if ($context != 'profile/club'): ?>
            <div class="sidebar-box box" id="clubs-info">
                <h3 class="section-title"><?php echo anchor('profile/club/index/'.$person->id, lang('home.Clubs')) ?></h3>
                <?php if (count($pilot->Clubs) > 0): ?>
                <dl class="">
                <?php foreach ($pilot->Clubs as $c): ?>
                    <dt><?php echo $c->name ?></dt>
                    <dd><?=lang('home.Joined')?>: <?php echo $c->ClubPilotModel[0]->joined; ?></dd>
                    <dd><?=lang('home.Member')?>: <?php echo $c->ClubPilotModel[0]->member; ?></dd>
                    <?php if ($c->isAdmin($person->id)): ?>
                    <dd>[ <?php echo anchor('admin/clubs/edit/'.$c->id, lang('home.Edit')); ?> ]</dd>
                    <?php endif; ?>
                <?php endforeach; ?>
                </dl>
                <?php else:?>
                <p><?=lang('home.No_clubs_assigned')?></p>
                <?php endif; ?>
            </div>
            <?php endif; ?>
            <?php if ($context != 'profile/license'): ?>
            <div class="sidebar-box box" id="licenses-info">
                <h3 class="section-title"><?php echo anchor('profile/license/index/'.$person->id, lang('home.Licenses'))?></h3>
                <?php if (count($pilot->Licenses) > 0): ?>
                <dl class="">
                <?php foreach ($pilot->Licenses as $l): ?>
                    <dt><?php echo $l->issuer ?> - <?php echo $l->level ?></dt>
                    <dd><?=lang('home.Description')?>: <?php echo $l->description ?></dd>
                    <dd><?=lang('home.Number')?>: <?php echo $l->PilotLicenseModel[0]->number; ?></dd>
                    <dd><?=lang('home.Issued')?>: <?php echo $l->PilotLicenseModel[0]->issued; ?></dd>
                    <dd><?=lang('home.Renewed')?>: <?php echo $l->PilotLicenseModel[0]->renewed; ?></dd>
                    <dd><?=lang('home.Expires')?>: <?php echo $l->PilotLicenseModel[0]->expires; ?></dd>
                <?php endforeach; ?>
                </dl>
                <?php else:?>
                <p><?=lang('home.No_licences_assigned')?></p>
                <?php endif; ?>
            </div>
            <?php endif; ?>
            <?php if ($context != 'profile/glider'): ?>
            <div class="sidebar-box box" id="gliders-info">
                <h3 class="section-title"><?php echo anchor('profile/glider/index/'.$person->id, lang('home.Gliders'))?></h3>
                <?php if (count($pilot->Gliders) > 0): ?>
                <dl class="">
                <?php foreach ($pilot->Gliders as $l): ?>
                    <dt><?php echo GliderModel::getGliderBrand($l->brand) ?> - <?php echo $l->model ?></dt>
                    <dd><?=lang('home.EN_Certification')?>: <?php echo $l->cert_en ?></dd>
                    <dd><?=lang('home.LTF_Certification')?>: <?php echo $l->cert_ltf ?></dd>
                    <dd><?=lang('home.Serial')?>: <?php echo $l->PilotGliderModel[0]->serial; ?></dd>
                    <dd><?=lang('home.Make')?>: <?php echo $l->PilotGliderModel[0]->built; ?></dd>
                    <dd><?=lang('home.Last_tested')?>: <?php echo $l->PilotGliderModel[0]->tested; ?></dd>
                <?php endforeach; ?>
                </dl>
                <?php else:?>
                <p><?=lang('home.No_gliders_assigned')?></p>
                <?php endif; ?>
            </div>
            <?php endif; ?>
            <?php if ($context != 'pilot'): ?>
            <div class="sidebar-box box" id="pilot-profile">
                <h3 class="section-title"><?php echo anchor('profile/pilot/edit/'.$person->id, lang('home.Pilot_Gear'))?></h3>
                    <dl class="">
                        <dd><?=lang('home.Helmet')?>: <?php echo $pilot->helmet; ?></dd>
                        <dd><?=lang('home.Harness')?>: <?php echo $pilot->harness; ?></dd>
                        <dd><?=lang('home.GPS')?>: <?php echo $pilot->gps; ?></dd>
                        <dd><?=lang('home.Vario')?>: <?php echo $pilot->vario; ?></dd>
                        <dd><?=lang('home.Rescue')?>: <?php echo $pilot->rescue; ?></dd>
                        <dd><?=lang('home.Sponsor')?>: <?php echo $pilot->sponsor; ?></dd>
                        <dd><?=lang('home.Comments')?>: <?php echo $pilot->comments; ?></dd>
                    </dl>
            </div>
            <?php endif; ?>
        <!-- /div> end sidebar -->
